package us.mooresr.webtroopmanager.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class PersonDeletedEvent extends GwtEvent<PersonDeletedHandler> {
	private final Long deletedId;
	public static final Type<PersonDeletedHandler> TYPE = new Type<PersonDeletedHandler>();
	
	public PersonDeletedEvent(Long deletedId) {
		super();
		this.deletedId = deletedId;
	}

	public Long getDeletedId() {
		return deletedId;
	}
	
	@Override
	protected void dispatch(PersonDeletedHandler handler) {
		handler.onDeletePerson(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<PersonDeletedHandler> getAssociatedType() {
		return TYPE;
	}

}
